{*$Id: ga_commerce_form.tpl,v 1.1.2.1 2007/02/07 11:09:17 twice Exp $*}
{*
Google Analytics form description:
UTM:T|[order-id]|[affiliation]|[total]|[tax]| [shipping]|[city]|[state]|[country]
UTM:I|[order-id]|[sku/code]|[productname]|[category]|[price]|[quantity]
*}
<form style="display:none;" name="utmform">
<textarea id="utmtrans">
{foreach from=$orders item="order"}
UTM:T|{$order.order.orderid}|{$partner|default:"Main stock"}|{$order.order.total}|{$order.order.tax}|{$order.order.shipping_cost}|{$order.order.b_city}|{$order.order.b_state}|{$order.order.b_countryname}
{foreach from=$order.products item="product"}
UTM:I|{$order.order.orderid}|{$product.productcode}|{$product.product}|{$product.category|default:"Unknown category"}|{$product.price}|{$product.amount}
{/foreach}
{/foreach}
</textarea>
</form>
